<%-- 
    Document   : LihatDataPengiriman
    Created on : Dec 10, 2013, 12:17:43 PM
    Author     : owner
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="Bean.Admin"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin Lihat-Data-Pengiriman</title>
        <link href="../css/style.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="home">

        <div id="wrapper">
            <center>
                </br>
                <center><img src="../image/header.png" width="600" height="100"/></center>
                <h1 align='right'> <a href="../HomePusat.jsp"><img src="../image/btn_home.png" width="100" height="40"/></a>
                    <a href="../FormLogin.jsp"><img src="../image/logout.png" width="100" height="40"/></a></h1>
                </br></br>
                <table border="1">
                    <tr>
                        <td width="200" align="center" bgcolor="663300"><font color="white">NO RESI</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">TANGGAL KIRIM</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">TANGGAL TERIMA</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">STATUS</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">NAMA PENGIRIM</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">ALAMAT PENGIRIM</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">NO. TLP PENGIRIM</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">NAMA PENERIMA</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">ALAMAT PENERIMA</font></td>
                    </tr>
                    <%
                        Admin kc = new Admin();
                        ResultSet rs1 = kc.tampilPengirimanCab_Barang();
                        ResultSet rs2 = kc.tampilPengirimanCab_Konsumen();
                        while (rs1.next() && rs2.next()) {
                    %>
                    <tr>
                        <td align="center"><%=rs1.getString("NO_RESI")%> </td>
                        <td align="center"><%=rs1.getString("TANGGAL_KIRIM")%></td>
                        <td align="center"><%=rs1.getString("TANGGAL_TERIMA")%></td>
                        <td align="center"><%=rs1.getString("STATUS")%></td>
                        <td align="center"><%=rs2.getString("NAMA_PENGIRIM")%> </td>
                        <td align="center"><%=rs2.getString("ALAMAT_PENGIRIM")%></td>
                        <td align="center"><%=rs2.getString("N0_TELEPON_PENGIRIM")%></td>
                        <td align="center"><%=rs2.getString("NAMA_PENERIMA")%></td>
                        <td align="center"><%=rs2.getString("ALAMAT_PENERIMA")%></td>
                    </tr>
                    <% }%>
                </table>
            </center>
        </div>
    </body>
</html>